from datetime import datetime
import os
import shutil

def copyPath(path,copy_path=None):
    if not os.path.isdir(path):
        print('path not find')
        return False
    path_old=os.path.basename(path)
    if copy_path is None:
        copy_path='%s_%s'%(path_old,datetime.now().strftime("%Y%m%d"))
    # print(copy_path)
    shutil.copytree(path,copy_path)
    return True

if __name__=="__main__":
    copyPath('/Users/gao/cctest')